package com.example.music;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

import java.nio.charset.StandardCharsets;

/**
 * @ClassName MusicMainApplication
 * @Author: wx
 * @Create: 2022-10-04  17:10
 * @Description TODO
 * @Version: 1.0
 **/
@ComponentScan(basePackages = {"com.example"})
@SpringBootApplication
public class MusicMainApplication {
    public static void main(String[] args) {
        // 修改系统默认字符集，解决url解析中文乱码问题
        if (! "UTF-8".equalsIgnoreCase(System.getProperty("file.encoding"))) {
            System.setProperty("file.encoding", StandardCharsets.UTF_8.name());
        }
        SpringApplication.run(MusicMainApplication.class, args);
        System.err.println("http://localhost:8030/swagger-ui.html");
    }
}
